package com.turing.post.salesmanage.util;

import java.math.BigInteger;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author zxp
 * @Mar 15, 2013
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "RiskLevelChangeDetail")
public class RiskLevelChangeDetail implements java.io.Serializable {

	private BigInteger changeId;// (PK) ID int Not Null
	private String issueCompanyNo;// 发卡商号 Varchar（6） Not Null

	public static final String entityType_person = "0";// 0 – 个人
	public static final String entityType_Organize = "1";// 1 – 单位
	public static final String entityType_merchant = "2";// 2 – 商户

	private String entityType;// 实体类型 Char（1） Not Null

	private String entityID;// 实体编号 Varchar（20） Not Null 根据EntityType查询不同的表
	private Date changeTime;// 变更时间 Date Not Null
	private BigInteger operId;// 操作员 Int Not Null
	private String origRiskLevel;// 原风险等级 Char（1） Not null
	private String newRiskLevel;// 新风险等级 Char（1） Not null
	private String remark;// 备注 varchar(60) Not Null

	public RiskLevelChangeDetail() {

	}

	@Id
	@Column(name = "changeId")
	public BigInteger getChangeId() {
		return changeId;
	}

	public void setChangeId(BigInteger changeId) {
		this.changeId = changeId;
	}

	@Column(name = "issueCompanyNo")
	public String getIssueCompanyNo() {
		return issueCompanyNo;
	}

	public void setIssueCompanyNo(String issueCompanyNo) {
		this.issueCompanyNo = issueCompanyNo;
	}

	@Column(name = "entityType")
	public String getEntityType() {
		return entityType;
	}

	public void setEntityType(String entityType) {
		this.entityType = entityType;
	}

	@Column(name = "entityID")
	public String getEntityID() {
		return entityID;
	}

	public void setEntityID(String entityID) {
		this.entityID = entityID;
	}

	@Column(name = "changeTime")
	public Date getChangeTime() {
		return changeTime;
	}

	public void setChangeTime(Date changeTime) {
		this.changeTime = changeTime;
	}

	@Column(name = "operId")
	public BigInteger getOperId() {
		return operId;
	}

	public void setOperId(BigInteger operId) {
		this.operId = operId;
	}

	@Column(name = "origRiskLevel")
	public String getOrigRiskLevel() {
		return origRiskLevel;
	}

	public void setOrigRiskLevel(String origRiskLevel) {
		this.origRiskLevel = origRiskLevel;
	}

	@Column(name = "newRiskLevel")
	public String getNewRiskLevel() {
		return newRiskLevel;
	}

	public void setNewRiskLevel(String newRiskLevel) {
		this.newRiskLevel = newRiskLevel;
	}

	@Column(name = "remark")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
}